from django.http import HttpResponse
from django.shortcuts import render

# Create your views here.
from rest_framework.views import APIView

from shareAPI.views import APIResponse


class addComment(APIView):
    authentication_classes = []
    def post(self,request,*args,**kwargs):
        articleID = request.data.get('articleID')  # 获取POST方法传来的值文章ID
        print(articleID)
        return APIResponse(data='nihao',msg='success')

    def get(self,request,*args,**kwargs):

        return APIResponse(data='get',msg='success')


